a2e5e8c5db0aaac83fd892fe3f8250b2d1da3e6b,test/org/opencms/test/OpenCmsTestCase.java,OpenCmsTestCase,removeOpenCms,#,185
Before Change
// remove potentially created "classes, "lib" and "backup" folder
CmsFileUtil.purgeDirectory(new File(getTestDataPath() + "WEB-INF/classes/"));
CmsFileUtil.purgeDirectory(new File(getTestDataPath() + "WEB-INF/lib/"));
CmsFileUtil.purgeDirectory(new File(getTestDataPath() + "WEB-INF/config/backup/"));
}
After Change
if (path != null) {
CmsFileUtil.purgeDirectory(new File(path));
}
path = getTestDataPath("WEB-INF/lib/");
if (path != null) {
CmsFileUtil.purgeDirectory(new File(path));
}
path = getTestDataPath("WEB-INF/config/backup/");
if (path != null) {